<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Kernel Functions</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="keywords" content="Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420"><link rel="home" href="index.html" title="Qualcomm Atheros Open Powerline Toolkit"><link rel="up" href="ch08.html" title="Chapter 8.  Serial Drivers"><link rel="prev" href="ch08s09.html" title="Support Functions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
				Kernel Functions
				</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch08s09.html">Prev</a> </td><th width="60%" align="center">Chapter 8. 
		Serial Drivers
		</th><td width="20%" align="right"> </td></tr></table><hr></div><div class="section" title="Kernel Functions"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="qcaspi"></a>
				Kernel Functions
				</h2></div></div></div><div class="section" title="qcaspi_netdev_xmit"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_xmit"></a>
				qcaspi_netdev_xmit
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <b class="fsfunc">qcaspi_netdev_xmit</b>(</code></td><td><var class="pdparam">skb</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct sk_buff * <var class="pdparam">skb</var></code>;<br><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Called by the Linux kernel append outgoing frames to the transmit queue.
				</p></div><div class="section" title="qcaspi_netdev_tx_timeout"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_tx_timeout"></a>
				qcaspi_netdev_tx_timeout
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">qcaspi_netdev_tx_timeout</b>(</code></td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Called by the Linux kernel after the transmit queue has been stopped for an extended period of time.
				</p></div><div class="section" title="qcaspi_netdev_uninit"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_uninit"></a>
				qcaspi_netdev_uninit
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">static void <b class="fsfunc">qcaspi_netdev_uninit</b>(</code></td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Called when function <code class="function">unregister_netdev</code> is called. For the QCA7000 driver, function <code class="function">qcaspi_mod_exit</code> calls function <code class="function">unregister_netdev</code>.
				</p></div><div class="section" title="qcaspi_netdev_get_stats"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_get_stats"></a>
				qcaspi_netdev_get_stats
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">struct net_device_stats * <b class="fsfunc">qcaspi_netdev_get_stats</b>(</code></td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Returns transmit, receive and error statistics associated with the net device. These are the statistics displayed by <span class="application">ifconfig</span>.
				</p></div><div class="section" title="qcaspi_netdev_change_mtu"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_change_mtu"></a>
				qcaspi_netdev_change_mtu
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <b class="fsfunc">qcaspi_netdev_change_mtu</b>(</code></td><td><var class="pdparam">device</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">new_mtu</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;<br><code>int <var class="pdparam">new_mtu</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Changes the serial interface MTU size.
				</p></div><div class="section" title="qcaspi_netdev_set_mac_address"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_set_mac_address"></a>
				qcaspi_netdev_set_mac_address
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">static int <b class="fsfunc">qcaspi_netdev_set_mac_address</b>(</code></td><td><var class="pdparam">device</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">memory</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;<br><code>void * <var class="pdparam">memory</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Sets the serial interface MAC address. Called by <span class="application">ifconfig</span> whenever user types <span class="command"><strong>ifconfig qca0 hw ether xx:xx:xx:xx:xx:xx</strong></span>.
				</p></div><div class="section" title="qcaspi_netdev_close"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_close"></a>
				qcaspi_netdev_close
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <b class="fsfunc">qcaspi_netdev_close</b>(</code></td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Called by <span class="application">ifconfig</span> to disable the network interface.
				</p></div><div class="section" title="qcaspi_mod_exit"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_mod_exit"></a>
				qcaspi_mod_exit
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">static void <b class="fsfunc">qcaspi_mod_exit</b>(</code></td><td><var class="pdparam">void</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code><var class="pdparam">void</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Called by the kernel to shutdown the driver module.
				</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch08s09.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch08.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">
				Support Functions
				 </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>
